package com.ylp.sys.domain.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author yanglipeng
 * @since 2024-06-19
 */
@Schema(description = "menuVo")
public class MenuVo implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    @Schema(description = "父id")
    private Long parentId;

    @Schema(description = "菜单名")
    private String menuName;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "类型：0，目录，1菜单，2：按钮")
    private Integer menuType;

    @Schema(description = "路由路径 如：umsUser")
    private String path;

    @Schema(description = "组件路径  如：ums/user/index")
    private String componentPath;

    @Schema(description = "权限标识")
    private String perms;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "是否删除 删除(1) 未删除(0)")
    private Integer deleted;

    @Schema(description = "状态：0：可用，1：不可用")
    private Integer status;

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "更新者")
    private String updater;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    private List<MenuVo> children;

    public List<MenuVo> getChildren() {
        return children;
    }

    public void setChildren(List<MenuVo> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponentPath() {
        return componentPath;
    }

    public void setComponentPath(String componentPath) {
        this.componentPath = componentPath;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysMenu{" +
            "id = " + id +
            ", parentId = " + parentId +
            ", menuName = " + menuName +
            ", sort = " + sort +
            ", menuType = " + menuType +
            ", path = " + path +
            ", componentPath = " + componentPath +
            ", perms = " + perms +
            ", icon = " + icon +
            ", deleted = " + deleted +
            ", status = " + status +
            ", creator = " + creator +
            ", updater = " + updater +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
        "}";
    }
}
